# # # 任意多个参数放到一个元组中
# # # def print_language(*args):
# # #     print(args)
# # #     for i in args:
# # #         print(i)
# # #
# # #
# # # print_language("python", "java", "php", "go")
# # # params = ["python", "java", "php", "go"]
# # # print_language(*params)
# # # def print_info(**kwargs):
# # #     print(kwargs)
# # #
# # #
# # # print_info(tom=18, jim=20, lily=12)
# # # params = {'tom': 18, 'jim': 20, 'lily': 12}
# # # print(params)
# # # import math
# # #
# # #
# # # def circle_area(r):
# # #     """计算园的面积"""
# # #     result = math.pi * r * r
# # #     return result
# # #
# # #
# # # r = 9
# # # #用lamba表达式实现
# # # result=lambda r:math.pi*r*r
# # # print(f"半径为{r}的圆的面积为 {circle_area(r)}")
# # # book_info = [
# # #     ("p", 22.5),
# # #     ("j", 20),
# # #     ("测试", 25)
# # # ]
# # # print(book_info)
# # # # 指定规则进行排序
# # # # lambda x:(x[1]，返回了列表元组的第二个元素)
# # # print(lambda x: (x[1]))
# # # book_info.sort(key=lambda x: (x[1]))
# # # print(book_info)
# # # str ="hello world hello Python"
# # # print(str.count("o"))
# # # print(str.count("O"))
# # # print(str.count("on"))
# # # print(str.count("on",3,50))
# # # print(str.index("l"))
# # # print(str.rindex("l"))
# # # url = "https://www.ceshiren.com"
# # # print(url.startswith("https://"))
# # # print(url.startswith("https://", 0, 8))
# # # print(url.startswith("https://", 5, 30))
# # # print("|"+"hogworts".center(20) + "|")
# # # print("|"+"hogworts".center(5) + "|")
# # #
# # # print("|"+"hogworts".center(20, "-") + "|")
# # # print("|"+"hogworts".ljust(20, "-") + "|")
# # import os
# # # help(os)
# # # print(dir(os))
# # # print(os.name)
# # # print(os.environ)
# # # print(os.getenv("PATH"))
# # # print(os.listdir())
# # # print(os.path.abspath("./foncion.py  "))
# # # import sys
# # # print(sys.version)
# # # print(type(sys.version))
# # import  os
# # #获取当前路径
# # print(os.getcwd())
# # #切换目录
# # # os.chdir('..')
# # # print(os.getcwd())
# # #列出当前目录内容
# # print(os.listdir())
# # #创建空目录
# # # # os.mkdir('mulu')
# # # os.makedirs('a/b/c')
# # # os.rmdir('mulu')
# # # os.rename('a','e')
# # #获取文件绝对路径
# # print(os.path.abspath('./foncion.py'))
# # #返回文件名
# # print(os.path.basename('D:/Users/86186/PycharmProjects/yftest/foncion.py'))
# # #返回文件目录
# # print(os.path.dirname('D:/Users/86186/PycharmProjects/yftest/foncion.py'))
# # #分割路径
# # print(os.path.split('D:/Users/86186/PycharmProjects/yftest/foncion.py'))
# # a=os.path.split('D:/Users/86186/PycharmProjects/yftest/foncion.py')
# # print(a[1])
# # #判断路径是否存在
# # print(os.path.exists('D:/Users/s'))
# # #判断是否是目录
# # print(os.path.isdir('D:/Users'))
# # #判断是否是文件
# # print(os.path.isfile('D:/Users/86186/PycharmProjects/yftest/foncion.py'))
# # #文件大小
# # print(os.path.getsize('D:/Users/86186/PycharmProjects/yftest/foncion.py'))
import sys
 #python解释器名称
print(sys.version)
#操作系统名称
print(sys.platform)
